package jbrowser.gui;

public class EmptyPage extends AbstractPage {

    public EmptyPage() {
        initComponents();
        btn00.setActionCommand("jbrowser.gui.Faworites");
        btn01.setActionCommand("jbrowser.config.gui.SettingsPage");
        btn02.setActionCommand("jbrowser.gui.History");
        btn10.setActionCommand("jbrowser.gui.Log");
        btn11.setActionCommand("app://elasticsearch-1.0-SNAPSHOT.jar!/");
        btn12.setActionCommand("mvn://jsystem:certman:1.0-SNAPSHOT");
        btn20.setActionCommand("mvn://jsystem:pacman:1.0-SNAPSHOT");
    }

    @Override
    public void setTab(Tab tab) {
        super.setTab(tab);
        btn00.addActionListener(tab);
        btn01.addActionListener(tab);
        btn02.addActionListener(tab);
        btn10.addActionListener(tab);
        btn11.addActionListener(tab);
        btn12.addActionListener(tab);
        btn20.addActionListener(tab);
        btn21.addActionListener(tab);
        btn22.addActionListener(tab);
    }

    @Override
    public String getTitle() {
        return "New Page";
    }

    @Override
    public CacheMode getCacheMode() {
        return CacheMode.REQUIRED;
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btn00 = new javax.swing.JButton();
        btn01 = new javax.swing.JButton();
        btn02 = new javax.swing.JButton();
        btn10 = new javax.swing.JButton();
        btn11 = new javax.swing.JButton();
        btn12 = new javax.swing.JButton();
        btn20 = new javax.swing.JButton();
        btn21 = new javax.swing.JButton();
        btn22 = new javax.swing.JButton();

        setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10));
        setLayout(new java.awt.GridLayout(3, 3, 10, 10));

        btn00.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jsystem/jbrowser/resource/home.png"))); // NOI18N
        btn00.setText("Home");
        add(btn00);

        btn01.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jsystem/jbrowser/resource/tools.png"))); // NOI18N
        btn01.setText("Settings");
        add(btn01);

        btn02.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jsystem/jbrowser/resource/clock.png"))); // NOI18N
        btn02.setText("History");
        add(btn02);

        btn10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jsystem/jbrowser/resource/clock.png"))); // NOI18N
        btn10.setText("Log");
        add(btn10);

        btn11.setText("Elastic Search");
        add(btn11);

        btn12.setText("CertificateManager");
        add(btn12);

        btn20.setText("Package Manager");
        add(btn20);
        add(btn21);

        btn22.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jsystem/jbrowser/resource/busy.gif"))); // NOI18N
        add(btn22);
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btn00;
    private javax.swing.JButton btn01;
    private javax.swing.JButton btn02;
    private javax.swing.JButton btn10;
    private javax.swing.JButton btn11;
    private javax.swing.JButton btn12;
    private javax.swing.JButton btn20;
    private javax.swing.JButton btn21;
    private javax.swing.JButton btn22;
    // End of variables declaration//GEN-END:variables
}
